<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>manage</title>
<link href="css/common.css" rel="stylesheet" type="text/css"/>
<link href="css/manage.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/YY_dialog.js"></script>
<script type="text/javascript" src="js/common.js"></script>
</head>
<body class="manage">
<div id="page_ctn">
	<div id="nav_ctn" class="show">
		<div class="handle_ctn"><a href="javascript:void(0);" class=""></a></div>
		<ul></ul>
	</div>
	<div id="content_frame_ctn">
		<iframe src="" frameborder="0" id="content_frame" scrolling="auto" width="100%" height="100%"></iframe>
	</div>
</div>
<script>
var set_window_p={full:true,h:null,v:$('#nav_ctn,#nav_ctn .handle_ctn,#content_frame_ctn')};
set_window();
$(window).scroll(set_window).resize(set_window);
$('#nav_ctn>ul>li>div').live('click',function(){
	var obj=$(this);
	$('#nav_ctn>ul>li').removeClass('c');
	obj.parent('li').addClass('c');
});
$('#nav_ctn li').live('click',function(){
	var obj=$(this);
	if (obj.attr('href')!=''&&obj.attr('href')!=='null')$('#content_frame').attr('src',obj.attr('href'));
});
$.get('ajax_response.php',{type:'get_catalog',catalog_id:'manage'},function(data){
	if (data.length>0){
		var str='';
		$(data).each(function(k,v){
			if (v.child_type=='0'){
				var str2='<ul>';
				$(data).each(function(ks,vs){
					if (vs.father_id==v.id){
						str2+='<li href="'+vs.link_dir+'">'+vs.catalog_name+'</li>';
					}
				});
				str2+='</ul>';
				str+='<li href="'+v.link_dir+'"><div>'+v.catalog_name+'</div><div class="ctr"><img src="image/spacer.gif"/></div>'+str2+'</li>';
			}
		});
		$('#nav_ctn>ul').html(str);
	}
},'json');
</script>
</body>
</html>